#!/bin/bash

step=5 #间隔的秒数，不能大于60

while true; do
    # 子进程执行
    source /home/pi/projects/raspi/venv/bin/activate;export FLASK_APP=/home/pi/projects/raspi/main.py;flask monitor &
    sleep ${step}
done

exit 0